\hypertarget{class_g_rect}{
\section{GRect Class Reference}
\label{class_g_rect}\index{GRect@{GRect}}
}


: Classe dérivé de \hyperlink{class_g_object}{GObject} représentant un rectangle dans la scène OpenGL  




{\ttfamily \#include $<$GRect.h$>$}

Inheritance diagram for GRect:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{class_g_rect}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_g_rect_a66651711fd959d226869ba99a0a266c7}{GRect} ()
\begin{DoxyCompactList}\small\item\em Construit un carré de taille 1 sur la matrice identité. \item\end{DoxyCompactList}\item 
\hyperlink{class_g_rect_a4b37079b0a05afba454585d0115b00c6}{GRect} (float size)
\begin{DoxyCompactList}\small\item\em Construit un carré en 0. \item\end{DoxyCompactList}\item 
\hyperlink{class_g_rect_ab5e1dc0e92df29f817113529b4f711e8}{GRect} (float size, \hyperlink{class_vectorf}{Vectorf} position)
\item 
\hyperlink{class_g_rect_a9a52df8daed79f87b0d04f39aef3326f}{GRect} (float awidth, float aheight)
\begin{DoxyCompactList}\small\item\em Construit un Rectangle en 0. \item\end{DoxyCompactList}\item 
\hyperlink{class_g_rect_a8e2934fc5a154a09380a1adbd5285837}{GRect} (float aWidth, float aHeight, \hyperlink{class_vectorf}{Vectorf} aTranslation)
\item 
\hyperlink{class_g_rect_ad63e2889a643c13ab138f5b5291c08d6}{$\sim$GRect} ()
\item 
virtual void \hyperlink{class_g_rect_a951017e20b29b9da11e16d269a4f54d4}{Display} ()
\begin{DoxyCompactList}\small\item\em Affiche le Rectangle dans une scene OpenGL. \item\end{DoxyCompactList}\item 
void \hyperlink{class_g_rect_a351032a58978b0f6a96fe60e4f0c4e96}{InitBuffers} ()
\begin{DoxyCompactList}\small\item\em Initialise les VBO (vertex buffer objects) utilisés pour représenter le rectangle. \item\end{DoxyCompactList}\item 
void \hyperlink{class_g_rect_a897060d83b3a5e39a78f3ea13d621d3e}{RenderBuffers} ()
\begin{DoxyCompactList}\small\item\em Méthode utilisé pour afficher le contenu des buffers. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
float \hyperlink{class_g_rect_acd3ad488097560e717f661edf492c130}{width}
\item 
float \hyperlink{class_g_rect_aa1c26a2d329e42f3f2df4fa4c690e4a4}{height}
\item 
\hyperlink{class_vectorf}{Vectorf} \hyperlink{class_g_rect_a5c8037c1489dd1d9a3c8ced43b84c668}{color}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
: Classe dérivé de \hyperlink{class_g_object}{GObject} représentant un rectangle dans la scène OpenGL 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_g_rect_a66651711fd959d226869ba99a0a266c7}{
\index{GRect@{GRect}!GRect@{GRect}}
\index{GRect@{GRect}!GRect@{GRect}}
\subsubsection[{GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::GRect (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a66651711fd959d226869ba99a0a266c7}


Construit un carré de taille 1 sur la matrice identité. 

\hypertarget{class_g_rect_a4b37079b0a05afba454585d0115b00c6}{
\index{GRect@{GRect}!GRect@{GRect}}
\index{GRect@{GRect}!GRect@{GRect}}
\subsubsection[{GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::GRect (
\begin{DoxyParamCaption}
\item[{float}]{ size}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a4b37079b0a05afba454585d0115b00c6}


Construit un carré en 0. 


\begin{DoxyParams}{Parameters}
\item[{\em size}]: coté du carré \end{DoxyParams}
\hypertarget{class_g_rect_ab5e1dc0e92df29f817113529b4f711e8}{
\index{GRect@{GRect}!GRect@{GRect}}
\index{GRect@{GRect}!GRect@{GRect}}
\subsubsection[{GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::GRect (
\begin{DoxyParamCaption}
\item[{float}]{ size, }
\item[{{\bf Vectorf}}]{ position}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_ab5e1dc0e92df29f817113529b4f711e8}
\hypertarget{class_g_rect_a9a52df8daed79f87b0d04f39aef3326f}{
\index{GRect@{GRect}!GRect@{GRect}}
\index{GRect@{GRect}!GRect@{GRect}}
\subsubsection[{GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::GRect (
\begin{DoxyParamCaption}
\item[{float}]{ aWidth, }
\item[{float}]{ aHeight}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a9a52df8daed79f87b0d04f39aef3326f}


Construit un Rectangle en 0. 


\begin{DoxyParams}{Parameters}
\item[{\em aWidth}]: longueur du carré \item[{\em aHeight}]: largeur du carré \end{DoxyParams}
\hypertarget{class_g_rect_a8e2934fc5a154a09380a1adbd5285837}{
\index{GRect@{GRect}!GRect@{GRect}}
\index{GRect@{GRect}!GRect@{GRect}}
\subsubsection[{GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::GRect (
\begin{DoxyParamCaption}
\item[{float}]{ aWidth, }
\item[{float}]{ aHeight, }
\item[{{\bf Vectorf}}]{ aTranslation}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a8e2934fc5a154a09380a1adbd5285837}
\hypertarget{class_g_rect_ad63e2889a643c13ab138f5b5291c08d6}{
\index{GRect@{GRect}!$\sim$GRect@{$\sim$GRect}}
\index{$\sim$GRect@{$\sim$GRect}!GRect@{GRect}}
\subsubsection[{$\sim$GRect}]{\setlength{\rightskip}{0pt plus 5cm}GRect::$\sim$GRect (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_ad63e2889a643c13ab138f5b5291c08d6}


\subsection{Member Function Documentation}
\hypertarget{class_g_rect_a951017e20b29b9da11e16d269a4f54d4}{
\index{GRect@{GRect}!Display@{Display}}
\index{Display@{Display}!GRect@{GRect}}
\subsubsection[{Display}]{\setlength{\rightskip}{0pt plus 5cm}GRect::Display (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_g_rect_a951017e20b29b9da11e16d269a4f54d4}


Affiche le Rectangle dans une scene OpenGL. 



Implements \hyperlink{class_g_object_ab503ad9dad3645df29eb8ddd10d88195}{GObject}.



Reimplemented in \hyperlink{class_g_rect_t_ae7eeea75b3d521b019824f365287f98c}{GRectT}.

\hypertarget{class_g_rect_a351032a58978b0f6a96fe60e4f0c4e96}{
\index{GRect@{GRect}!InitBuffers@{InitBuffers}}
\index{InitBuffers@{InitBuffers}!GRect@{GRect}}
\subsubsection[{InitBuffers}]{\setlength{\rightskip}{0pt plus 5cm}GRect::InitBuffers (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a351032a58978b0f6a96fe60e4f0c4e96}


Initialise les VBO (vertex buffer objects) utilisés pour représenter le rectangle. 

\hypertarget{class_g_rect_a897060d83b3a5e39a78f3ea13d621d3e}{
\index{GRect@{GRect}!RenderBuffers@{RenderBuffers}}
\index{RenderBuffers@{RenderBuffers}!GRect@{GRect}}
\subsubsection[{RenderBuffers}]{\setlength{\rightskip}{0pt plus 5cm}GRect::RenderBuffers (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}
\label{class_g_rect_a897060d83b3a5e39a78f3ea13d621d3e}


Méthode utilisé pour afficher le contenu des buffers. 



\subsection{Member Data Documentation}
\hypertarget{class_g_rect_a5c8037c1489dd1d9a3c8ced43b84c668}{
\index{GRect@{GRect}!color@{color}}
\index{color@{color}!GRect@{GRect}}
\subsubsection[{color}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Vectorf} {\bf GRect::color}}}
\label{class_g_rect_a5c8037c1489dd1d9a3c8ced43b84c668}
Composantes RGB ou RGBA de la couleur du rectangle en float (entre 0.0 et 1.0) \hypertarget{class_g_rect_aa1c26a2d329e42f3f2df4fa4c690e4a4}{
\index{GRect@{GRect}!height@{height}}
\index{height@{height}!GRect@{GRect}}
\subsubsection[{height}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf GRect::height}}}
\label{class_g_rect_aa1c26a2d329e42f3f2df4fa4c690e4a4}
Largeur du rectangle \hypertarget{class_g_rect_acd3ad488097560e717f661edf492c130}{
\index{GRect@{GRect}!width@{width}}
\index{width@{width}!GRect@{GRect}}
\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}float {\bf GRect::width}}}
\label{class_g_rect_acd3ad488097560e717f661edf492c130}
Longueur du rectangle 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
sources/graphic/\hyperlink{_g_rect_8h}{GRect.h}\item 
sources/graphic/\hyperlink{_g_rect_8cpp}{GRect.cpp}\end{DoxyCompactItemize}
